package com.platform.service.impl;

import com.platform.service.PersistentLoginsService;
import com.platform.dao.PersistentLoginsDao;
import com.platform.domain.model.PersistentLogins;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;


/**
* PersistentLogins
*
* User: wangyang
* DateTime: 2012-10-08 16:11:58
*
*/
@Service("persistentLoginsService")
public class PersistentLoginsServiceImpl implements PersistentLoginsService {

    @Resource
    private PersistentLoginsDao persistentLoginsDao;

    /**
    *
    * 根据主键查询PersistentLogins对象
    *
    * @param series
    * @return PersistentLogins对象
    */
    @Override
    public PersistentLogins selectByPrimaryKey(String series) throws Exception {
        return persistentLoginsDao.selectByPrimaryKey(series);
    }

    /**
    *
    * 根据查询条件查询符合条件的PersistentLogins对象
    *
    * @param persistentLogins
    * @return 符合条件的PersistentLogins对象List
    */
    @Override
    public List<PersistentLogins> select(PersistentLogins persistentLogins) throws Exception {
        return persistentLoginsDao.select(persistentLogins);
    }

    /**
    *
    * 根据主键删除PersistentLogins对象
    *
    * @param series
    * @return 影响条件数
    */
    @Override
    public int deleteByPrimaryKey(String series) throws Exception {
        return persistentLoginsDao.deleteByPrimaryKey(series);
    }

    /**
    *
    * 根据条件删除符合条件的PersistentLogins对象
    *
    * @param persistentLogins
    * @return 影响条件数
    */
    @Override
    public int delete(PersistentLogins persistentLogins) throws Exception {
        return persistentLoginsDao.delete(persistentLogins);
    }

    /**
    *
    * 插入PersistentLogins对象
    *
    * @param persistentLogins
    * @return 影响条件数
    */
    @Override
    public int insert(PersistentLogins persistentLogins) throws Exception {
        return persistentLoginsDao.insert(persistentLogins);
    }

    /**
    *
    * 更新PersistentLogins对象
    *
    * @param persistentLogins
    * @return 影响条件数
    */
    @Override
    public int update(PersistentLogins persistentLogins) throws Exception {
        return persistentLoginsDao.update(persistentLogins);
    }
}
